package server;

public class FNode {
	
	private String peer_id;
	private String file_id;
	private int lock;
	
	public FNode(String peer, String file){
		peer_id = peer;
		file_id = file;
	}
	
	public void lockfile(){
		lock = 1;
	}
	
	public void unlockfile(){
		lock = 0;
	}
	
	public int getLock(){
		return lock;
	}
	
	public String getPeer_id() {
		return peer_id;
	}
	public void setPeer_id(String peerId) {
		peer_id = peerId;
	}
	public String getFile_id() {
		return file_id;
	}
	public void setFile_id(String fileId) {
		file_id = fileId;
	}

}
